package top.eggcode.common.error;

import top.eggcode.common.consts.ResponseStatus;

/**
 * 参数无效
 * 用户输入参数导致业务不可处理，如”用户名已存在”。
 * Created at 2022/6/23 11:34
 *
 * @author JiaQi Ding
 * @version 1.0
 */
public class InvalidParameterException extends ApplicationException {

    public InvalidParameterException(String message) {
        super(message);
    }

    public InvalidParameterException(String message, String location) {
        super(message, location);
    }

    public InvalidParameterException(String message, Throwable cause) {
        super(message, cause);
    }

    public InvalidParameterException(Throwable cause, String message) {
        super(cause, message);
    }

    public InvalidParameterException(ResponseStatus responseStatus, Throwable cause) {
        super(responseStatus, cause);
    }

    public InvalidParameterException(ResponseStatus responseStatus, String message, String location) {
        super(responseStatus, message, location);
    }

    public InvalidParameterException(ResponseStatus responseStatus, String location) {
        super(responseStatus, location);
    }

    public InvalidParameterException(ResponseStatus responseStatus) {
        super(responseStatus);
    }

    public InvalidParameterException(Integer code, String message, String location) {
        super(code, message, location);
    }
}
